
using UnityEngine;
using UnityEngine.UI;

public class QuitButton : MonoBehaviour
{
    Button button;

    private void Awake()
    {
        button = GetComponent<Button>();
        button.onClick.AddListener(OnClickBtn);
    }

    void OnClickBtn()
    {
        MessageManager.Run(MsgKey.Quit);
    }
}
